package com.qst.liuxu;

public class Monitor extends Student {

    //属性
    private String  stuPosition;
    //成员变量
    private SubAddress subAddress = new SubAddress();//测试成员变量的执行顺序

    static {
        System.out.println("执行了子类Monitor的静态代码块");
    }
    {
        System.out.println("执行了子类Monitor的非静态代码块");

    }
    public Monitor() {
        System.out.println("执行了Monitor的默认构造方法");
    }

    public Monitor(String stuName, int stuAge, double stuGrade, String stuPosition) {
        super(stuName, stuAge, stuGrade);
        this.stuPosition = stuPosition;
    }

    //行为  管理
    public void supervise(){
        System.out.println("U should to coding,,,,");
    }
}
